package command;

public class Stereo {

    private String location;
    private int volume;

    public Stereo() {
        this.location = "";
        this.volume = 10;
    }

    public Stereo(String location) {
        this.location = location;
        this.volume = 10;
    }

    public void on() {
        System.out.println(location + " Stereo is On");
    }

    public void setCD() {
        System.out.println(location + " Stereo is set for CD input");
    }

    public void setVolume(int volume) {
        this.volume = volume;
        System.out.println(location + " Stereo volume set to " + this.volume);
    }

    public void off() {
        System.out.println(location + " Stereo is Off");
    }

}
